of

public static HttpHeader of(String name, String value)

Returns an instance of the HttpHeader with the given name and value.

Parameters

name

the name of the HTTP header

value

the value of the HTTP header

Throws

when name is empty or blank